<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script src="public/common/js/jquery.js"></script>
<script src="public/common/js/plug/wbox/wbox-min.js"></script>
<link rel="stylesheet" type="text/css" href="public/common/js/plug/wbox/wbox/wbox.css">
<script>
$(function(){
	$("#image_frame").wBox({
		requestType: "iframe",
		title: "图片管理",
		target:"<?php echo site_url('admin/image/box_show')?>",
		iframeWH:{width:800,height:400}
	});
});
</script>
</head>
<body>
<div class="body">
	<div class="main_top"><div class="position left">当前位置 <span>&gt;</span> 工具 <span>&gt;</span> 友情链接 <span>&gt;</span> 链接管理 <span>&gt;</span> 链接修改 </div></div>
    <div class="go_back"><a href="javascript:history.back()">返回</a></div>
    <div class="body_center">
    	<form action="<?php echo site_url('admin/friend_link/edit_content/'.$friend_link->link_id)?>" method="post">
            <table class="table">
                <tr><th width='20%'>参数名</th><th width='55%'>参数值</th><th width='25%'>参数说明</th></tr>
                <tr>
                    <td align="center">网站名称：</td>
                    <td><input class="input_txt" type="text" name="link_name" value='<?php echo  $friend_link->link_name?>' /></td>
                    <td>&nbsp;</td>
                </tr>
				<tr>
                    <td align="center">网站链接：</td>
                    <td><input class="input_txt" type="text" name="link_url" value='<?php echo $friend_link->link_url?>' /></td>
                    <td>&nbsp;</td>
                </tr>
				<tr>
                    <td align="center">网站LOGO：</td>
                    <td>
						<input id="pic_path" class="input_txt left" type="text" name="link_logo" value="<?php if(empty($friend_link->link_logo)):?>public/common/images/no_pic.gif<?php else:?><?php  echo $friend_link->link_logo?><?php endif;?>" /> 
						<a id="image_frame" href="<?php echo site_url('admin/image/box_show')?>" class="left">上传图片</a>
					</td>
                    <td id="show_pic_path"><img src="<?php if(empty($friend_link->link_logo)):?>public/common/images/no_pic.gif<?php else:?><?php  echo $friend_link->link_logo?><?php endif;?>" width="100px" height="100px"></td>
                </tr>
				<tr>
                    <td align="center">排序：</td>
                    <td><input type="text" name="link_sort" value="10" class='border_none' value='<?php echo $friend_link->link_sort?>' /></td>
                    <td ><span class="red">*</span> 数字越小排名越靠前</td>
                </tr>
				<tr>
                    <td align="center">网站说明：</td>
                    <td><textarea name="link_desc" class='textarea'><?php echo $friend_link->link_desc?></textarea></td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                   		<input type="submit" class="submit" value="提交" /> 
                        &nbsp;&nbsp;
                        <input type="reset" class="reset" value="重置" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
   		</form>
    </div>
</div>
</body>
</html>